

import lejos.nxt.*;

public class TachoDisplay {

	public static void main (String[] args) throws Exception {
		
		while (true) {
			
			if (Button.ESCAPE.isPressed()) {
				break;
			}
			
			// Refreshing the display to properly show the numbers:
			Thread.sleep(100);
			LCD.clear();
			
			LCD.drawString("Grados: ", 1, 4);
			LCD.drawInt(Motor.A.getTachoCount(), 9, 4);
		}
	}
}
